package com.moyun.finance.entity;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Transient;
import java.util.List;

/**
 * 账户流水实体类
 */
@Entity
@Data
public class Bill {
    @Id
    private String id;

    private String companyId;//关联公司id

    private String accountId;//账户id

    private String contractId;//合同id

    private String reimbursementId;//报销单id

    private String customerId;//客户id

    private String projectsId;//项目id

    private String userId;//职员id

    private int billType;//流水类型 0:支出 1：收入

    private double billMoney;//流水金额

    private String remark;//备注

    private String createDate;//创建时间

    @Transient
    private Customer customer;//关联客户

    @Transient
    private Projects projects;//关联项目

    @Transient
    private OrgUser user;//职员

    @Transient
    private Contract contract;//合同

    @Transient
    private List<ProductContractMid> productContractMids;//合同关联产品信息

    @Transient
    private Account account;//关联账户

    @Transient
    private Reimbursement reimbursement;//报销单
}